<?php echo $this->Session->flash(); ?>
<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<table id="tabla">
    <thead>
        <tr>
            <th>Tipo</th>
            <th>Fecha programada</th>
            <th>Observación</th>
            <th>Fecha real</th>
            <th colspan="2"></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($adjudicaciones as $adjudicacion): ?>
            <tr>
                <td><?php echo $adjudicacion['Adjudication']['tipo'] ?></td>
                <td><?php echo $adjudicacion['Adjudication']['fecha_programada'] ?></td>
                <td><?php echo $adjudicacion['Adjudication']['observacion'] ?></td>
                <td><?php echo $adjudicacion['Adjudication']['fecha_real'] ?></td>
                <td>
                    <?php echo $ajax->link('Editar', array('controller' => 'Adjudications', 'action' => 'edit', $adjudicacion['Adjudication']['id']), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'escape' => false)); ?>                    
                    <?php //echo $ajax->link('Eliminar', array('controller' => 'Adjudications', 'action' => 'delete', $adjudicacion['Adjudication']['id'], $adjudicacion['Adjudication']['proyect_id']), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'escape' => false), '¿Realmente desea eliminar el registro?'); ?>                
                </td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<br>
<br>
<table width="100%" border="0"  CellSpacing=10  align="center" >
    <tbody>
        <tr>
            <td>
                <?php echo $ajax->link('Adicionar', array('controller' => 'Adjudications', 'action' => 'add', $proyect_id), array('class' => 'actions', 'update' => 'content', 'indicator' => 'loading', 'escape' => false)); ?>
            </td>
        </tr>
    </tbody>
</table>